<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>宿舍选择</title>
    <style>
         * {
        font-family: Arial;
        font-size: 14px;
        margin: 0;
        padding: 0;
        border: none;
        }
        a { text-decoration: none; }
        ul { list-style: none; }

        .page-header{
            height: 70px;
            background-color: rgba(0, 0, 0, 0.7);
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .page-header span{
            font-size: 30px;
            color: rgb(22, 20, 20);
        }
        html,body{
            width: 100%;
            height: 100%;
        }
        body{
            background-image: url(../static/img/bg.jpg);
            background-repeat: no-repeat;
        }
        .header-nav{
            display: flex;
            align-items: center;
        }
        .header-nav li:hover{
            transform: translate(0 ,-5px);

        }
        .header-nav li a{
            color: white;
            border: 1px solid white;
            font-size: 20px;
            border-radius: 8px;
            padding: 0 10px;
            margin-right: 20px;
            transition: all 0.5s linear;
        }
        .header-nav li a:hover{
            box-shadow: 0 0 15px pink;
        }

        .page-content{
            display: flex;
            height: calc(100vh - 70px);
        }
        .content-nav{
            width: 1000px;
            height: 300px;
            /* background-color: aqua; */
            margin: auto;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            /* align-items: center;
            justify-content: center; */
        }
        .item{
            width: 180px;
            height: 200px;
            background-color: brown;
            display: flex;
            /* 交换主轴把主轴变换成列 */
            flex-direction: column;
            /* 侧轴的对齐方式居中 */
            align-items: center;
            /* 主轴的对齐方式分散对齐 */
            justify-content: space-evenly;
            transition: all 0.2s linear;
            cursor: pointer;

        }
        .content-nav .item:nth-child(1) {
            background-color: brown;
        }
        .content-nav .item:nth-child(2) {
            background-color: pink;
        }
        .content-nav .item:nth-child(3) {
            background-color: rgb(108, 108, 36);
        }
        .content-nav .item:nth-child(4) {
            background-color: red;
        }
        .content-nav .item:nth-child(5) {
            background-color: aqua;
        }
        .content-nav .item:hover{
            box-shadow: 0 0 15px black;
            border-radius: 30px;
            transform: translateY(-15px);
        }
    </style>
</head>
<body>
    <!-- 头部 -->
    <header class="page-header">
        <span>宿舍管理系统</span>
        <ul class="header-nav">
            <li><a href="#">点击登录</a></li>
            <li><a href="#">个人中心</a></li>
            <li><a href="#">客服咨询</a></li>
            <li><a href="#">联系我们</a></li>
        </ul>
    </header>
    <!-- 主要内容区 -->
    <div class="page-content">
        <div class="content-nav">
            <div class="item">
                <img src="../static/img/item1.png" alt="">
                <a href="/dialog"><span>我的邮箱</span></a>
                </div>
            <div class="item">
                <img src="../static/img/item2.png" alt="">
                <a href="/chose" methods="post">宿舍选择</a>
            </div>
            <div class="item">
                <img src="../static/img/item3.png" alt="">
                <span>手机课堂</span>
            </div>
            <div class="item">
                <img src="../static/img/item4.png" alt="">
                <span>微信服务</span>
            </div>
            <div class="item">
                <img src="../static/img/item5.png" alt="">
                <span>在线客服</span>
            </div>
        </div>
    </div>
</body>
</html>